package com.zenchn.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.zenchn.model.TSysAreas;

import java.util.ArrayList;
import java.util.List;

/**
 * TSysAreasVO：
 *
 * @author dingxinfa
 * @date 2020-04-16 10:22
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TSysAreasVO  extends TSysAreas {

    private static final long serialVersionUID = -3823290846345916678L;
    private String categoryName;

    private List<TSysAreasVO> children;

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public List<TSysAreasVO> getChildren() {
        return children;
    }

    public void setChildren(List<TSysAreasVO> children) {
        this.children = children!=null?children:new ArrayList<>();;
    }

    @Override
    public String toString() {
        return "TSysAreasVO{" +
                "categoryName='" + categoryName + '\'' +
                ", children=" + children +
                '}';
    }
}
